<HTML>
<HEAD>
<meta charset="UTF-8">
<title>PrimaryMeetingPromotionObserver.onPrimaryMeetingPromotion - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo</a>&nbsp;/&nbsp;<a href="index.html">PrimaryMeetingPromotionObserver</a>&nbsp;/&nbsp;<a href="./on-primary-meeting-promotion.html">onPrimaryMeetingPromotion</a><br/>
<br/>
<h1>onPrimaryMeetingPromotion</h1>
<a name="com.amazonaws.services.chime.sdk.meetings.audiovideo.PrimaryMeetingPromotionObserver$onPrimaryMeetingPromotion(com.amazonaws.services.chime.sdk.meetings.session.MeetingSessionStatus)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">onPrimaryMeetingPromotion</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.PrimaryMeetingPromotionObserver$onPrimaryMeetingPromotion(com.amazonaws.services.chime.sdk.meetings.session.MeetingSessionStatus)/status">status</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.session/-meeting-session-status/index.html"><span class="identifier">MeetingSessionStatus</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Upon success/failure of <a href="../-audio-video-controller-facade/promote-to-primary-meeting.html">AudioVideoFacade.promoteToPrimaryMeeting</a> the following observer
will return a <a href="../../com.amazonaws.services.chime.sdk.meetings.session/-meeting-session-status/index.html">MeetingSessionStatus</a> that will contain a <a href="#">MeetingSessionStatusCode</a> of the following:</p>
<ul><li><a href="#">MeetingSessionStatusCode.OK</a>: The promotion was successful (i.e. session token was valid,
there was room in the Primary meeting, etc.), audio will begin flowing
and the attendee can begin to send data messages, and content/video if the call is not already at limit.</li>
<li><a href="#">MeetingSessionStatusCode.AudioAuthenticationRejected</a>: Credentials provided
were invalid when connection attempted to Primary meeting. There may be an issue
with your mechanism which allocates the Primary meeting attendee for the Replica
meeting proxied promotion.  This also may indicate that this API was called in a
non-Replica meeting.</li>
<li><a href="#">MeetingSessionStatusCode.AudioCallAtCapacity</a>: Credentials provided were correct
but there was no room in the Primary meeting.  Promotions to Primary meeting attendee take up a slot, just like
regular Primary meeting attendee connections and are limited by the same mechanisms.</li>
<li><a href="#">MeetingSessionStatusCode.AudioServiceUnavailable</a>: Media has not been connected yet so promotion is not yet possible.</li>
<li><a href="#">MeetingSessionStatusCode.AudioInternalServerError</a>: Other failure, possibly due to disconnect
or timeout. These failures are likely retryable.</li>
</ul>
<h3>Parameters</h3>
<p><a name="status"></a>
<code>status</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.session/-meeting-session-status/index.html">MeetingSessionStatus</a> - Reason for demotion, see notes above</p>
</BODY>
</HTML>
